package com.whales.lms.rms.web.model;

import java.util.List;

import com.whales.lms.rms.web.util.ConstantUtil;
import com.whales.shared.model.CommonVO;

public class PcVO extends CommonVO {
	private static final long serialVersionUID = 1L;
	private String name;
	private String zone;
	private String zoneName;
	private String loginId;
	private String loginPw;
	private String ip;
	private String macAddress;
	private String description;
	private String hwState;
	private String swState;
	private int lifeTime;
	private int projectorLifeType;
	private List<PcItemVO> itemVOs;
	private String hasProjector;
	private String cmsStatus;
	private int projectorLifeTime;
	
	public String getState() {
		if(!ConstantUtil.STATE_OKE.equals(this.hwState)){
			return this.hwState;
		}else if(!ConstantUtil.STATE_OKE.equals(this.swState)){
			return this.swState;
		}else{
			return ConstantUtil.STATE_OKE;
		}
	}
	public int getProjectorLifeTime() {
		return projectorLifeTime;
	}
	public void setProjectorLifeTime(int projectorLifeTime) {
		this.projectorLifeTime = projectorLifeTime;
	}
	public String getHwState() {
		return hwState;
	}
	public void setHwState(String hwState) {
		this.hwState = hwState;
	}
	public String getSwState() {
		return swState;
	}
	public void setSwState(String swState) {
		this.swState = swState;
	}
	public String getZoneName() {
		return zoneName;
	}
	public void setZoneName(String zoneName) {
		this.zoneName = zoneName;
	}
	public List<PcItemVO> getItemVOs() {
		return itemVOs;
	}
	public void setItemVOs(List<PcItemVO> itemVOs) {
		this.itemVOs = itemVOs;
	}
	public int getProjectorLifeType() {
		return projectorLifeType;
	}
	public void setProjectorLifeType(int projectorLifeType) {
		this.projectorLifeType = projectorLifeType;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getZone() {
		return zone;
	}
	public void setZone(String zone) {
		this.zone = zone;
	}
	public String getLoginId() {
		return loginId;
	}
	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}
	public String getLoginPw() {
		return loginPw;
	}
	public void setLoginPw(String loginPw) {
		this.loginPw = loginPw;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getMacAddress() {
		return macAddress;
	}
	public void setMacAddress(String macAddress) {
		this.macAddress = macAddress;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getLifeTime() {
		return lifeTime;
	}
	public void setLifeTime(int lifeTime) {
		this.lifeTime = lifeTime;
	}
	public void setTime(int time) {
		this.lifeTime = time;
	}
	public String getHasProjector() {
		return hasProjector;
	}
	public void setHasProjector(String hasProjector) {
		this.hasProjector = hasProjector;
	}
	public String getCmsStatus() {
		return cmsStatus;
	}
	public void setCmsStatus(String cmsStatus) {
		this.cmsStatus = cmsStatus;
	}
}
